<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <canvas id="cvs" width="400" height="400"></canvas>

  <script>
    let cvs = document.getElementById("cvs");
    let cxt = cvs.getContext("2d");

    cxt.beginPath();
    cxt.moveTo(200, 220);
    cxt.quadraticCurveTo(300, 260, 400, 180);
    cxt.quadraticCurveTo(300, 140, 200, 220);
    cxt.fillStyle = "green";
    cxt.fill();


  </script>
</body>
</html>